package com.lyf.service;

import java.util.List;

import com.lyf.dao.RecordDao;
import com.lyf.pojo.Record;

public class RecordService {

	private RecordDao dao;

	//set,
	public void setDao(RecordDao dao) {
		this.dao = dao;
	}
	
	//method,
	public List<Record> findByLinkmanId(String id){
		return dao.findByLinkmanId(id);
	}

	public void save(Record record) {
		dao.saveOrUpdate(record);
	}

	public Record findById(String id) {
		return dao.get(id);
	}

	public void delete(String id) {
		dao.delete(id);
	}
	
	
}
